projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520051f
)
Don't prefer 'notes' on a shortname if we have an empty (but non-null) notes.
author
robertl
<robertl>
Wed, 14 Sep 2005 14:19:46 +0000
(14:19 +0000)
committer
robertl
<robertl>
Wed, 14 Sep 2005 14:19:46 +0000
(14:19 +0000)
(Test case: input from a tabsep file...)
mkshort.c
patch
|
blob
|
history
diff --git
a/mkshort.c
b/mkshort.c
index 8c2c96005b1914d5d00549ed6ca47f8e092c9d70..2ab7e220c39e9fa2b7f16c404d3f8d6da194f280 100644
(file)
--- a/
mkshort.c
+++ b/
mkshort.c
@@
-478,7
+478,8
@@
mkshort_from_wpt(void *h, const waypoint *wpt)
* which contains placer name, diff, terr, and generally way
* more stuff than should be in any one field...
*/
- if (wpt->gc_data.diff && wpt->gc_data.terr && wpt->notes) {
+ if (wpt->gc_data.diff && wpt->gc_data.terr &&
+ wpt->notes && wpt->notes[0]) {
return mkshort(h, wpt->notes);
}